<?php

namespace app\admin\controller;


use app\common\model\UserListModel;

class UserList extends Intercept
{
    public function index()
    {
        return $this->fetch();
    }

    public function getList()
    {
       $data = (new UserListModel())->getList();
       return $data;
    }

    public function add()
    {
        return $this->fetch();
    }

    public function updateData()
    {
        if (request()->isPost()) {
            $params = input('param.');
            $data = (new UserListModel())->updateData($params);
            return $data;
        }
    }

}